package com.trkj.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.trkj.pojo.Recipient;

public interface RecipientDAO extends JpaRepository<Recipient, Integer>,JpaSpecificationExecutor<Recipient> {
	@Query("select r from Recipient r where r.emp.empId=?1 and r.email.emailId=?2")
	public Recipient selectrecipient(Integer empid,Integer emailid);
}
